package com.webinsky.domain.resource;

public enum ResType {
	Image("image"), Video("video");
	
	private String type;
	
	private ResType(String type){
		this.type = type;
	}
	
	public String getType(){
		return type;
	}
	
	public static ResType parse(String type){
		for ( ResType resType: ResType.values() ){
			if ( resType.getType().equals(type) ){
				return resType;
			}
		}
		return null;
	}
}
